Add 4.4 version macros
authorMatthias Clasen <mclasen@redhat.com>
Mon, 26 Apr 2021 03:34:16 +0000 (23:34 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 3 May 2021 01:02:09 +0000 (21:02 -0400)
gdk/gdkversionmacros.h.in

index b6d0960a7fec12f6ec5309d0052e66d4fab5908b..c4a4a5a10ffad3e21378c84150c92e290373c9a1 100644 (file)
  */
 #define GDK_VERSION_4_2        (G_ENCODE_VERSION (4, 2))
 
+/**
+ * GDK_VERSION_4_4:
+ *
+ * A macro that evaluates to the 4.4 version of GDK, in a format
+ * that can be used by the C pre-processor.
+ */
+#define GDK_VERSION_4_4        (G_ENCODE_VERSION (4, 4))
+
 
 /* evaluates to the current stable version; for development cycles,
  * this means the next stable target, with a hard backstop to the
 # define GDK_DEPRECATED_IN_4_2_FOR(f)           _GDK_EXTERN
 #endif
 
+
+#if GDK_VERSION_MAX_ALLOWED < GDK_VERSION_4_4
+# define GDK_AVAILABLE_IN_4_4                   GDK_UNAVAILABLE(4, 4)
+#else
+# define GDK_AVAILABLE_IN_4_4                   _GDK_EXTERN
+#endif
+
+#if GDK_VERSION_MIN_REQUIRED >= GDK_VERSION_4_4
+# define GDK_DEPRECATED_IN_4_4                  GDK_DEPRECATED
+# define GDK_DEPRECATED_IN_4_4_FOR(f)           GDK_DEPRECATED_FOR(f)
+#else
+# define GDK_DEPRECATED_IN_4_4                  _GDK_EXTERN
+# define GDK_DEPRECATED_IN_4_4_FOR(f)           _GDK_EXTERN
+#endif
+
 #endif  /* __GDK_VERSION_MACROS_H__ */